package com.itheima.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.pojo.PT;
import com.itheima.pojo.Psychoanalysis;
import com.itheima.service.PsychoanalysisService;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("psychoanalysisMobile")
public class PsychoanalysisMobileController {

  @Reference(version = "1.0.0")
    private PsychoanalysisService psychoanalysisService;

    @PostMapping("findById")
    public Result findById(@RequestParam("id") Integer id, @RequestParam("value")String pt){
      id  +=1;
      PT byId = psychoanalysisService.findById(id);
      Result result = new Result(true, "1", byId);
      return result;


    }
}